{include file="public/header" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<style >
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0px;
        margin-top: 0px
    }

    #title span {
        float: right;
    }

    .asdlkjasd {
        background: #1ab394;
        color: #fff
    }

    td {
        word-wrap: break-word;
        word-break: break-all;
        max-width: 700px;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="fixed-table-toolbar">
                        <form method="get" action="" style="display: flex;">
	                        <div class="pull-left">
	                        	<a class="btn btn-default btn-outline {present name='sex'}{eq name='sex' value='0'}asdlkjasd{/eq}{/present}" href="{:url('porno',['sex'=>0])}">男号</a>
	                        	<a class="btn btn-default btn-outline {present name='sex'}{eq name='sex' value='1'}asdlkjasd{/eq}{/present}" href="{:url('porno',['sex'=>1])}">女号</a>
	                        </div>
                            <div class="pull-left search" style="display: flex;">
                                <input name="keyword" type="text" class="form-control layui-input" value="{present name='keyword'}{$keyword}{/present}" placeholder="用户id" style="height:34px;width:180px;margin:0 10px;">
                                <input name="date" type="text" id="time" class="form-control layui-input" value="{present name='date'}{$date}{/present}" placeholder="时间" autocomplete="off" style="height:34px;width:180px;margin:0 10px;">
                                    <button style="border-radius:0px; border:1px solid #e5e6e7;"
                                            class="btn btn-default btn-outline" type="submit" id="search-btn">查询
                                    </button>
                            </div>
                        </form>

                    </div>
                    <div class="example">
                        <form class="form-horizontal" method="post">
                        <table data-toggle="table">
                            <thead>
                            <tr>
		                        <th width="100">用户id</th>
		                        <th>昵称</th>
		                        <th>性别</th>
		                        <th>总充值/总收益</th>
		                        <th width="150">注册时间</th>
		                        <th width="80">鉴黄次数</th>
		                        <th width="110">少于20秒次数</th>
		                        <th width="110">鉴黄视频人数</th>
		                        <th width="110">总视频人数</th>
		                        <th>统计时间</th>
                            </tr>
                            </thead>
                            <tbody id="form">
                        {volist name="data" id="v"}
							<tr>
								<td>{$v.user_id}</td>
								<td>
								<a style="color: #40BCF7;" onclick="member({$v.user_id })">{$v.nickname}</a>
								</td>
								<td>{$v.sex}</td>
								<td>{$v.value}</td>
								<td>{$v.register_datetime}</td>
								<td>{$v.num}</td>
								<td>{$v.minnum}</td>
								<td>{$v.pnum}</td>
								<td>{$v.pcount}</td>
								<td>{:date('Y-m-d H:i:s', $v.create_time)}</td>
							</tr>
                        {/volist}
                            </tbody>
                        </table>
                        </form>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages">{$page}</div>
            </div>
        </div>
    </div>
</div>
<div id="LianmaiDetail" style="text-align:center;display:none;margin: 0px 30px;padding:10px 100px">
</div>
<div id="OrderDetail" style="text-align:center;display:none;margin: 0px 30px;padding:10px 100px">
</div>
<script type="text/javascript">
    layui.use(['laydate'], function(){
        var laydate = layui.laydate;

        laydate.render({
            elem: '#time' //指定元素
            ,type: 'date'
            ,trigger: 'click'
        });
    })

    function member(id)
    {
        layui.use('layer', function(){
            var layer = layui.layer;
            layer.open({
                title :'预览',
                area: ['100%', '100%'],
                type: 2,
                content: '{:url("member/index")}?search=id&name='+id
            });
        });
    }
</script>
{include file="public/footer" /}

